﻿using Newtonsoft.Json;
using Pay.Core;
using Pay.TO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Pay.DTO
{
    /// <summary>
    /// 用户马力值变动历史
    /// </summary>
    [Serializable]
    [JsonObject(MemberSerialization.OptOut)]
    public class user_soup_value_his_dto
    {
        /// <summary>
        /// 用户马力值变动历史Id
        /// </summary>
        public long id { get; set; }

        /// <summary>
        /// 用户Id
        /// </summary>
        public long user_id { get; set; }

        /// <summary>
        /// 任务类型（对应任务类型枚举值）
        /// </summary>
        public ETaskType task_type { get; set; }

        /// <summary>
        /// 任务类型枚举描述
        /// </summary>
        public string task_type_title { get { return this.task_type.ToDescription(); } }

        /// <summary>
        /// 具体任务项目Id（如商家介绍Id、文章Id,注：如登录/注册等任务，ItemId可为0）
        /// </summary>
        public long item_id { get; set; }

        /// <summary>
        /// 马力值变动
        /// </summary>
        public int soup_value { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        public DateTime create_time { get; set; }

        /// <summary>
        /// 有效时间
        /// </summary>
        public DateTime? effective_time { get; set; }

        /// <summary>
        /// 用户信息
        /// </summary>
        public virtual merchant_dto merchant { get; set; }
    }

}
